{% extends "base.html" %}
{% load url from future %}

{% block content %}

{% if form.errors %}
<p>Seu usu&aacute;rio e senha n&atilde;o conferem. Por favor, tente novamente.</p>
{% endif %}

<form class="form-horizontal" method="post" action="{% url 'django.contrib.auth.views.login' %}">
  {% csrf_token %}
  <fieldset>
    <div class="control-group">
      <label class="control-label" for="username">Usu&aacute;rio:</label>
      <div class="controls">{{ form.username }}</div>
    </div>
    <div class="control-group">
      <label class="control-label" for="password">Senha:</label>
      <div class="controls">{{ form.password }}</div>
    </div>
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">Entrar</button>
      <input type="hidden" name="next" value="{{ next }}" />
    </div>
  </fieldset>
</form>

{% endblock %}
